//
//  UITableView+Extension.swift
//  GXKit_Swift
//
//  Created by guangxiao on 2018/1/17.
//  Copyright © 2018年 guangxiao. All rights reserved.
//

import UIKit

extension UITableView {
    var tableTestCells: [GXTableTestTableViewCell] {
        return visibleCells.flatMap({ $0 as? GXTableTestTableViewCell })
    }
    
//    func hideSwipeCell() {
//        tableTestCells.forEach { $0.hideSwipe(animated: true) }
//    }
    func selectedTestCells()->[GXTableTestTableViewCell]{
        
       return  tableTestCells.filter { (testCell) -> Bool in
            return testCell.isSelected
        }
    }
}
